package com.learn.ssm.chapter2.interceptor;

import org.omg.CORBA.*;
import org.omg.CORBA.Object;
import org.omg.PortableInterceptor.Interceptor;

import java.lang.reflect.Method;

public class Interceptor2 implements Interceptor {

    public boolean before(java.lang.Object proxy, java.lang.Object target, Method method, java.lang.Object[] args){
        System.out.println("【拦截器2】的before方法");
        return true;
    }
    public void around(Object proxy,Object target,Method method,Object[]args){

    }
    public void after(Object proxy,Object target,Method method,Object[]args){
        System.out.println("【拦截器2】的after方法");
    }

    @Override
    public boolean _is_a(String repositoryIdentifier) {
        return false;
    }

    @Override
    public boolean _is_equivalent(Object other) {
        return false;
    }

    @Override
    public boolean _non_existent() {
        return false;
    }

    @Override
    public int _hash(int maximum) {
        return 0;
    }

    @Override
    public Object _duplicate() {
        return null;
    }

    @Override
    public void _release() {

    }

    @Override
    public Object _get_interface_def() {
        return null;
    }

    @Override
    public Request _request(String operation) {
        return null;
    }

    @Override
    public Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result) {
        return null;
    }

    @Override
    public Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist) {
        return null;
    }

    @Override
    public Policy _get_policy(int policy_type) {
        return null;
    }

    @Override
    public DomainManager[] _get_domain_managers() {
        return new DomainManager[0];
    }

    @Override
    public Object _set_policy_override(Policy[] policies, SetOverrideType set_add) {
        return null;
    }

    @Override
    public String name() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
